package cn.njxzc.Java2017;

public class Tree {
	int height;

	Tree() {
		prt("Planting a seeding");
		height = 0;
	}

	Tree(int i) {
		prt("Creating new Tree  that is " + i + " feet tall");
		height = i;
	}

	void info() {
		prt("Tree is " + height + " feet height");
	}

	void info(String s) {
		prt(s + ": Tree is  " + height + " feet height");
	}

	static void prt(String s) {
		System.out.println(s);
	}
public static void main(String[] args) {
	for (int i =0; i < 5; i++) {
	    Tree t = new Tree(i);
	    t.info();
	    t.info("“my tree”");
	}
	new Tree();
	

}
}
